CreateDataAccessAgent<T> Method

Syntax
C#
C++/CLI
public virtual T CreateDataAccessAgent<T>() 
public: 
virtual _T^_ CreateDataAccessAgentgeneric<typename T> 
();  

Type Parameters

T

Return Value

The data provider object which corresponds to the Leadtools.Medical.DataAccessLayer.Configuration.DataAccessMapping.DataAccessType.

Remarks

This method will not try to create a data provider from the generic type. It will create a provider from the type configured in the Leadtools.Medical.DataAccessLayer.Configuration.IDataAccessConfigurationView. The user should be responsible of providing the proper type or interface for the returned provider or this method will fail.

This method will create the data provider and pass the connection string for the constructor.

For a practice on using the GetInstance(IDataAccessConfigurationView) refer to the "Leadtools.Medical.Winforms" project.

Requirements

Target Platforms

Help Version 22.0.2023.2.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.DataAccessLayer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.